package com.easygo.client;

import com.easygo.common.ResultResponse;
import com.easygo.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "EASYGO-USER-SERVER")
public interface UserServiceClient {
    @PostMapping("/user_register")
    public ResultResponse userRegist(User user);

    @GetMapping("/user_list")
    public List<User> list();
}
